/* ===============================
   TESTIMONIALS SECTION
   =============================== */

.testimonials-section {
  padding: 30px 0;
  background: #ffffff;
}

.container {
  width: 1200px;
  max-width: 95%;
  margin: auto;
}

.testimonials-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
}

/* ===============================
   ONE-LINE LAYOUT
   =============================== */

.testimonials-grid {
  display: flex;
  gap: 25px;

  flex-wrap: nowrap;        /* 🔴 one line only */
  overflow-x: auto;         /* scroll if needed */
  padding-bottom: 10px;
}

/* hide scrollbar (optional, clean look) */
.testimonials-grid::-webkit-scrollbar {
  display: none;
}

/* ===============================
   CARD
   =============================== */

.testimonial-card {
  width: 359px;
  height: 280px;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  flex-shrink: 0;           /* prevent shrinking */

  /* animation initial state */
  opacity: 0;
  transform: translateY(60px);
}

/* ===============================
   CARD TOP
   =============================== */

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.stars {
  color: #ff9800;
  font-size: 16px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2979ff;
}

/* ===============================
   TEXT
   =============================== */

.testimonial-card p {
  line-height: 1.6;
  color: #444;
}

.testimonial-card strong {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  color: #000;
}

/* ===============================
   ANIMATION
   =============================== */

.testimonial-card.animate {
  animation: slideUpOnce 0.9s ease-out forwards;
}

@keyframes slideUpOnce {
  from {
    transform: translateY(60px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ===============================
   UX IMPROVEMENTS
   =============================== */

/* Smooth horizontal swipe */
.testimonials-grid {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Better tap spacing */
.testimonial-card {
  cursor: grab;
}

.testimonial-card:active {
  cursor: grabbing;
}

/* ===============================
   TABLET
   =============================== */
@media (max-width: 1024px) {

  .testimonials-section {
    padding: 80px 0;
  }

  .testimonial-card {
    width: 320px;
    height: auto;
  }
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 768px) {

  .testimonials-section {
    padding: 60px 0;
  }

  .testimonials-section h2 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .testimonials-grid {
    gap: 16px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .testimonial-card {
    width: 260px;
    padding: 20px;
  }

  .testimonial-card p {
    font-size: 13px;
  }
}

/* ===============================
   SMALL PHONES
   =============================== */
@media (max-width: 480px) {

  .testimonial-card {
    width: 230px;
    padding: 18px;
  }

  .stars {
    font-size: 14px;
  }

  .badge {
    font-size: 11px;
  }
}
